/**
 * 
 */
package org.cuatrovientos.erp.model;


import javax.validation.constraints.Min;
import javax.validation.constraints.Size;
import java.sql.Date;
/**
 * @author eneko_lana
 *
 */
public class Payroll {
	
	private int id;
	
	@Size(min=1,max=50,message="{shipment.description.error}")
	private String description;
	

	private java.sql.Date date;
	
	@Min(value=0,message="{shipment.gross.error}")
	private Float gross;

	@Min(value=0,message="{shipment.wage.error}")
	private Float wage;
	
	@Min(value=1,message="{shipment.idemployee.error}")
	private int idemployee;
	
	public Payroll () {
		
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public java.sql.Date getDate() {
		return date;
	}

	public void setDate(java.sql.Date date) {
		this.date = date;
	}

	public Float getGross() {
		return gross;
	}

	public void setGross(Float gross) {
		this.gross = gross;
	}

	public Float getWage() {
		return wage;
	}

	public void setWage(Float wage) {
		this.wage = wage;
	}

	public int getIdemployee() {
		return idemployee;
	}

	public void setIdemployee(int idemployee) {
		this.idemployee = idemployee;
	}

	@Override
	public String toString() {
		return "Payroll [id=" + id + ", description=" + description + ", date="
				+ date + ", gross=" + gross + ", wage=" + wage
				+ ", idemployee=" + idemployee + "]";
	}
	
	
	

}
